package com.googlecode.olabs.common.client.contact.formats.json;

import java.util.List;

import com.google.gwt.json.client.JSONParser;
import com.google.gwt.json.client.JSONValue;
import com.googlecode.olabs.common.client.contact.Contact;
import com.googlecode.olabs.common.client.contact.ContactException;
import com.googlecode.olabs.common.client.contact.ContactImpl;
import com.googlecode.olabs.common.client.contact.formats.Parser;

public class JsonGwtParser implements Parser {

	public Contact parse(List<String> rawText) throws ContactException {
		Contact contact = new ContactImpl();
		for (String line : rawText) {
			JSONValue value = JSONParser.parse(line);
		}
		return contact;
	}
}
